package kr.saeildamil.androidstudty.ch13;

import kr.saeildamil.androidstudty.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ProgressBar;

public class Ch13Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch13_main);
	}

	public void mOnClick(View v) {
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch13_ProgressBar_btn:
			intent.setClass(this, ProgressBar.class);
			break;
		case R.id.ch13_pickerdialog_btn:
			intent.setClass(this, PickerDialog.class);
			break;
		case R.id.ch13_seekbar_btn:
			intent.setClass(this, SeekBarTest.class);
			break;
		case R.id.ch13_autocomplete_btn:
			intent.setClass(this, AutoComplete.class);
			break;
		case R.id.ch13_ratingbar_btn:
			intent.setClass(this, RatingBarTest.class);
			break;
		case R.id.ch13_datetimetest_btn:
			intent.setClass(this, DateTimeTest.class);
			break;
		case R.id.ch13_slidingbar_btn:
			intent.setClass(this, SlidingDrawerTest.class);
			break;
		case R.id.ch13_WebViewTest_btn:
			intent.setClass(this, WebViewTest.class);
			break;
		case R.id.ch13_ListPopupWindowTest_btn:
			intent.setClass(this, ListPopupWindowTest.class);
			break;
		case R.id.ch13_SwitchTest_btn:
			intent.setClass(this, SwitchTest.class);
			break;
		}
		startActivity(intent);
	}

}